use super::po::{self, ActiveModelExt, ColumnExt};
use crate::{impl_db_po_active_model_ext, impl_db_po_column_ext};
use sea_orm::entity::prelude::*;

#[derive(Default, Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "candidate_path_segment_list")]
pub struct Model {
    #[sea_orm(primary_key)]
    pub id: u64,
    pub candidate_path_id: String,
    pub segment_list_id: String,
    pub weight: u32,
    pub create_timestamp_millis: u64,
    pub update_timestamp_millis: u64,
}

#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}

impl ActiveModelBehavior for ActiveModel {}

impl_db_po_active_model_ext!(ActiveModel);
impl_db_po_column_ext!(Column);
